package com.study.service;

import com.study.entity.Role;
import com.study.entity.RolePermission;

import java.util.List;

public interface RoleService {
    int addRole(Role role);

    int deleteRole(Integer roleId);

    int modifyRole(Role role);

    List<Role> selectAllRole();

    void saveAssignedRole(Integer userId,String[] roleIdBatches);

    Role selectRolePermission(Integer roleId);

    void saveAllocatedPermission(Integer roleId, String[] resIdBatches);
}
